package com.example.demo.controller.mall;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;


@Controller
public class IndexController {
//    @PreAuthorize("hasPermission(authentication,'create')")
    @GetMapping(value = {"/","/home"})
    public String home() {
        return "/index";
    }
}
